import request from '@/utils/request'
// import qs from 'qs'
export function login(data) {
  return request({
    url: '/api/login',
    method: 'post',
    data
  })
}
export function logout(data) {
  return request({
    url: '/egg/user/logout',
    method: 'post',
    data
  })
}
export function getInfo(token) {
  return request({
    url: '/egg/user/getInfo',
    method: 'get',
    params: { token }
  })
}
export function getMenu(data) {
  return request({
    url: '/test',
    method: 'get',
    data
  })
}
